package com.itool.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.apache.log4j.Logger;

public class PropertiesUtil {
	private static Logger logger=Logger.getLogger(PropertiesUtil.class);
	private static Properties prop=null;
	private PropertiesUtil(){
		
	}
	
	static{
		prop=new Properties();
		InputStream in=PropertiesUtil.class.getResourceAsStream("/system-config.properties");
		try {
			prop.load(in);
		} catch (IOException e) {
			logger.error(e.getMessage());
		}
	}
	
	public static String getValue(String key){
		String val=null;
		val=prop.getProperty(key).trim();
		return val;
	}

}
